import React, { Component } from "react";
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
function Home(){
  return <div>
    <h1>主页内容</h1>
  </div>
}
export default class App extends Component {
  render() {
    return <Router>
      <Link to="/Home">主页</Link>
      <Route path="/Home" component={Home}></Route>
    </Router>;
  }
}
